<template>
	<view>
		<u-popup :show="messageInfo.hysjShow" @close="close" mode="center">
			<view class="mainpadding">
				<view class="huangsetext allxiahian">会员升级</view>
				<view class="nostrongtext margin_top">
					因非会员限制，该文档仅支持会员下载，升级会员获取<br>权限下载。
				</view>
				<view class="flexright margin_top">
					<view class="huangsebtn" @click="shengji">升级</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		// 使用示例
		// <huiyuansjpop :messageInfo="{hysjShow:hysjShow}" @hysjclose="hysjShow=false"></huiyuansjpop>
		// hysjShow:false,
		// userinfo:{},
		// name:"huiyuansjpop",
		// getuserinfo(){
		// 	httpRequest.request('/api/user/index', 'GET', {}, false, false, true).then(res => {
		// 		this.userinfo = res.data
		// 	})
		// },
		// if(this.userinfo.level==0 && item.is_vip==2){
		// 	this.hysjShow = true
		// 	return false
		// }
		props:{
			messageInfo:{
				hysjShow:false
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			shengji(){
				this.close()
				httpRequest.request('/api/user/userApply', 'GET', {
				}, false, false, true).then(res => {
					httpRequest.toast(res.msg)
				})
			},
			close(){
				this.$emit("hysjclose")
			},
		}
	}
</script>
<style lang="scss" scoped>
	.huangsebtn {
		background-color: #f8b62b;
		width: 150rpx;
		height: 52rpx;
		color: #fff;
		font-size: 26rpx;
		font-weight: 500;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 36rpx;
	}

	.huangsetext {
		color: #f9ba3b;
		font-size: 26rpx;
		font-weight: 500;
	}

</style>